<% /* $Id: contestlanguages.jsp 100 2010-12-25 22:46:14Z altdotua@gmail.com $ */ %>

<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ page import="java.lang.management.*"%>
<%@ page import="java.util.*"%>

<%@ include file="../header.jsp"%>

<%
        Iterator<MemoryPoolMXBean> iter = ManagementFactory.getMemoryPoolMXBeans().iterator();
        while (iter.hasNext())
        {
            MemoryPoolMXBean item = (MemoryPoolMXBean) iter.next();
%>

<table>
	<tr>
		<td colspan="2" align="center">
		<h3>Memory MXBean</h3>
		</td>
	</tr>
	<tr>
		<td width="200">Heap Memory Usage</td>
		<td><%=ManagementFactory.getMemoryMXBean().getHeapMemoryUsage()%></td>
	</tr>
	<tr>
		<td>Non-Heap Memory Usage</td>
		<td><%=ManagementFactory.getMemoryMXBean().getNonHeapMemoryUsage()%></td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2" align="center">
		<h3>Memory Pool MXBeans</h3>
		</td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<%
}
%>

</table>


<%@ include file="../footer.jsp"%>